"""
实战四：显示实时天气预报
"""
template = '%s    天气预报: %s     %d℃    %s'
context1 = ('2018年4月17日', '晴', 20, '微风转西风3~4级')
context2 = ('08:00', '晴', 13, '微风')
context3 = ('12:00', '晴', 19, '微风')
context4 = ('16:00', '晴', 18, '西风3·4级')
context5 = ('20:00', '晴', 15, '西风3·4级')
context6 = ('00:00', '晴', 12, '微风')
context7 = ('04:00', '晴',  9 , ' 微风')
print(template%context1)
print(template%context2)
print(template%context3)
print(template%context4)
print(template%context5)
print(template%context6)
print(template%context7)